<template>
  <section>
    <div class="home">
      {{currTime}}
    </div>
    <el-button type="success" @click="getTime">GET</el-button>
  </section>
</template>

<script>
// @ is an alias to /src
import dateformater from '../tools/date-formater.js'
export default {
  name: 'home',
  components: {
    
  },
  data() {
    return {
      currTime:null
    }
  },
  created(){
    
  },
  methods:{
    getTime(){
      let time = new Date()
      this.currTime=dateformater.formatDatetime(time) 
    }
  }
}
</script>
